//
//  MMGPictureInfoDTO.swift
//  MyMicroblog
//
//  Created by Mac on 17/1/7.
//  Copyright © 2017年 itcast. All rights reserved.
//

import UIKit

class MMGPictureInfoDTO: NSObject {

    // 图片地址
    var thumbnail_pic: String? {
        didSet{
            // 获取中等图片地址
            bimiddleImageStr = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "bmiddle")
            wap360Str = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "wap360")
            iamgeURL = URL(string: wap360Str!)
        }
    }
    
    // 中等图片
    private var bimiddleImageStr: String?
    
    // wap360图片
    var wap360Str: String?
    
    // 图片
    var iamgeURL: URL?
}
